package cn.yudao.ymcc.feign;

import cn.yudao.ymcc.result.JSONResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import java.util.List;

@Component
@FeignClient(value = "service-course", fallbackFactory = CourseFeignFallbackFactory.class)
public interface CourseFeign {

    @RequestMapping(value = "/course/getcoursebyids",method = RequestMethod.POST)
    JSONResult getCourseByIds(@RequestBody List<Long> ids);

}
